package com.colin.library.help.imageloader.base;

import android.content.Context;
import android.widget.ImageView;

/**
 * Created by Colin on 2017/4/16.
 */

public abstract class BaseImageLoaderOption {

    public int LOAD_IMAGE_SMALL = 0x00000000;
    public int LOAD_IMAGE_MEDIUM = 0x00000001;
    public int LOAD_IMAGE_BIG = 0x00000002;

    public static final int LOAD_STRATEGY_NORMAL = 0;
    public static final int LOAD_STRATEGY_ONLY_WIFI = 1;


    protected Context mContext;
    protected ImageView mImageView;
    protected String url;

    public BaseImageLoaderOption(ImageView imageView, String url) {
        mImageView = imageView;
        this.url = url;
    }

    public Context getContext() {
        return null == mContext ? mImageView.getContext() : mContext;
    }

    public void setContext(Context context) {
        mContext = context;
    }

    public ImageView getImageView() {
        return mImageView;
    }

    public void setImageView(ImageView imageView) {
        mImageView = imageView;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
}
